package priv.lirenhe.javasuper.thread.deadlock;

public class DeadLock {

	public DeadLock() {
		
	}
	
	public static void main(String[] args) {
		ResourceTask rt = new ResourceTask();
		
		Thread xiaoming = new Thread(rt,"xiaoming");
		Thread xiaohong = new Thread(rt,"xiaohong");
//		Thread xiaoming = new Thread(new ResourceTask(),"xiaoming");
//		Thread xiaohong = new Thread(new ResourceTask(),"xiaohong");
		
		xiaoming.start();
		xiaohong.start();
	}

}
